﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BZV.Foundation
{
    // 开奖时间
    public class StartTime
    {
        // 投注结束时间
        public DateTime FsEndTime;
        // 结束时间
        public DateTime EndTime;
        // 开奖等待时间
        public int nWaiteInterval = 70;
        // 倒计时
        public int nCountDownTime = 40;
        // 获取延时
        public int nDelay = 5;
        // 当前的彩票期号
        public string strIssue = "";
    }

    // 计算的基本结果
    public class ResultParam
    {
        // 总共个数
        public int Count = 0;

        // 组态的中三种类型的个数
        public Dictionary<CombinationState, int> CombinationCount = new Dictionary<CombinationState, int>();

        // 单双
        public List<Dictionary<AttributeState, int>> AttributesCount = new List<Dictionary<AttributeState, int>>();

        // 大小
        public List<Dictionary<SizeState, int>> SizesCount = new List<Dictionary<SizeState, int>>();

        // 后三位数字出现次数 12345  345
        public int[,] LastThreePerCount = new int[3, 10];

        // 后三位合起来的数字出现的次数
        public int[] LastThreeAllCount = new int[10];

        public ResultParam()
        {
            // 每种组态的个数
            CombinationCount.Add(CombinationState.EN_COM_ALL, 0);
            CombinationCount.Add(CombinationState.EN_COM_SIX, 0);
            CombinationCount.Add(CombinationState.EN_COM_THREE, 0);

            // 每位上面，大小，单双的个数
            for (int i = 0; i < 5; i++)
            {
                Dictionary<AttributeState, int> AttrItem = new Dictionary<AttributeState, int>();
                AttrItem.Add(AttributeState.EN_ATTR_DOUBLE, 0);
                AttrItem.Add(AttributeState.EN_ATTR_SINGLE, 0);
                AttributesCount.Add(AttrItem);

                Dictionary<SizeState, int> sizeItem = new Dictionary<SizeState, int>();
                sizeItem.Add(SizeState.EN_SIZE_BIG, 0);
                sizeItem.Add(SizeState.EN_SIZE_SMALL, 0);
                SizesCount.Add(sizeItem);
            }
        }
    }
}
